package com.base.comm;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 配置全局地址
 *
 * @author Administrator
 */
@Component
public class CommUrls {

    /*久话内容*/
    public static String REDIS_JH_TOKEN = "jh_token";
    public static String REDIS_JH_TOKEN_NEW = "jh_token_new";
    public static String REDIS_JH_TOKEN_BC = "jh_token_bc";
    public static String REDIS_JH_TOKEN_CUSTOM = "jh_token_custom";

    /*请求协议*/
    public static String Treaty_https = "https://";
    public static String Treaty = "http://";

    public static String Url;
    public String getUrl() {
        return Url;
    }
    @Value(value = "${system.url}")
    public void setUrl(String url) {
        Url = url;
    }

    public static String THISSERVER;
    public String getTHISSERVER() {
        return THISSERVER;
    }
    @Value(value = "${system.notify-url}")
    public void setTHISSERVER(String notifyUrl) {
        THISSERVER = notifyUrl;
    }

    public static String THISSERVER_PORT;
    public String getThisserverPort() {
        return THISSERVER_PORT;
    }
    @Value(value = "${system.notify-url}")
    public void setThisserverPort(String notifyUrl) {
        THISSERVER_PORT = notifyUrl;
    }

    /*文件保存*/
    public static String FILEPATH = "F:/Files/";
    public String getFILEPATH() {
        return FILEPATH;
    }
    @Value(value = "${system.file-path}")
    public void setFILEPATH(String filePath) {
        FILEPATH = filePath;
    }

    public static String HOST_PATH;
    public String getHostPath() {
        return HOST_PATH;
    }
    @Value(value = "${system.host-path}")
    public void setHostPath(String hostPath) {
        HOST_PATH = hostPath;
    }

    //老的服务器地址
    public static String OLD_SERVER = "http://admin.sbdznkj.com";

    //短信配置
    public static String Smsaccountid = "88660042";
    public static String Smsappid = "50123";
    public static String Smsappkey = "aeb9d5cd23f0ee6d57678af3e6936455";
    public static String Smsaccountidzy = "ACCf472db2f5af843538184f7286e261a57";
    public static String Smsappidzy = "APP404b33c534f440389e0ded4cdfac9501";
    public static String Smsappkeyzy = "APIb137361bae1c43beb81c8dc40b602c8f";

    //VOS内容
    public static String BaseUrl = "http://121.196.210.61:8080/external/server/";

    //JDBC链接
    public static String JDBC = "jdbc:mysql://localhost:3306/voip_test?rewriteBatchedStatements=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull";
    public static String JDBC_USER = "root";
    public static String JDBC_PASSWORD = "V3cyzBGUHQXe";

    // 京东商城
    //public static String SERVER_URL = "http://gw.api.360buy.com/routerjson";
    public static String JDAPPKEY = "F70C3CA6708FD0ED90F60E08F8D49546";
    public static String HJKAPIKEY = "1b61701e19ddc25e";
    public static String JDAPPSECRET = "9910174ad1054785b51a277c35301a3c";
    public static String JDACCESSTOKEN = "84093b3d-c680-40bc-9dff-133b8550a162";
    public static String JDREFRESHTOKEN = "952273dd-0cba-4746-ba2a-d3565c09bce6";

    //高德地图KEY:
    //public static String GDMAPKEY="b964307051c3bb9c8731311febc73394";//高德地图个人KEY
    public static String GDMAPKEY = "7860cf7a21075a6536f856e6d70f5aba";  //高德地图随便打企业KEY
    // 聚合
    public static String JHNEWSKEY = "50cd6ab37e29922b290ed4bff47c3f96";
    public static String JHWEATHERKEY = "f20ddf3e8e1123879da14c9f177ed6e9";
    // 推广位
    public static String PID_RULE = "unoinId_"; // 推广位生成规则

    public static String wx_head_img;
    public String getWx_head_img() {
        return wx_head_img;
    }
    @Value(value = "${system.wx-head-img}")
    public void setWx_head_img(String wxHeadImg) {
        wx_head_img = wxHeadImg;
    }
}
